package com.yuyue.dronesystem.beans;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * Requirement
 */
public class Requirement {

    // 需求列表
    private List<RequirementItem> reqList = new ArrayList<>();

    public Requirement() {
    }

    public Requirement(List<RequirementItem> reqList) {
        this.reqList = reqList;
    }

    public List<RequirementItem> getReqList() {
        return this.reqList;
    }

    public void setReqList(List<RequirementItem> reqList) {
        this.reqList = reqList;
    }

    public Requirement reqList(List<RequirementItem> reqList) {
        this.reqList = reqList;
        return this;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof Requirement)) {
            return false;
        }
        Requirement requirement = (Requirement) o;
        return Objects.equals(reqList, requirement.reqList);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(reqList);
    }

    @Override
    public String toString() {
        return "{" +
            " reqList='" + getReqList() + "'" +
            "}";
    }
}